package models;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.BelongsTo;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
import com.et.ar.annotations.Unique;

import java.sql.*;

//校对信息
@Table(name="proofrinfo")
public class Proofrinfo extends ActiveRecordBase{
	@Id private Integer id;
	@Column private String unitname;
	@Column private String z_id;
	@Column private Timestamp inputdate;
	@Column private Timestamp editdate;
	@Column private String pf_unitname;
	@Column private String pf_local_id;
	@Column private String context;
	@Column private String oper;


	//	@BelongsTo(foreignKey="demoId")
	//	private Demo demo;

	//	public Demo getDemo() {
	//		return demo;
	//	}
	//	public void setDemo(Demo demo) {
	//		this.demo = demo;
	//	}

	//	public int getChildCount() throws Exception {
	//		return (int)count(Proofrinfo.class, "parentId=?", new Object[]{id});
	//	}
	//	public String findChildIds() throws Exception {
	//		String s = "";
	//		List<Integer> ids = new ArrayList<Integer>();
	//		ids.add(id);
	//		while(!ids.isEmpty()){
	//			int id = ids.remove(0);
	//			s += id + ",";
	//			for(Proofrinfo item: Proofrinfo.findAll(Proofrinfo.class, "parentId=?", new Object[]{id})){
	//				ids.add(item.getId());
	//			}
	//		}
	//		if (!s.equals("")){
	//			s = s.substring(0, s.length() - 1);
	//		}
	//		return s;
	//	}
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}

	public void setUnitname(String unitname){
		this.unitname=unitname;
	}
	public String getUnitname(){
		return unitname;
	}

	public void setZ_id(String z_id){
		this.z_id=z_id;
	}
	public String getZ_id(){
		return z_id;
	}

	public void setInputdate(Timestamp inputdate){
		this.inputdate=inputdate;
	}
	public Timestamp getInputdate(){
		return inputdate;
	}

	public void setEditdate(Timestamp editdate){
		this.editdate=editdate;
	}
	public Timestamp getEditdate(){
		return editdate;
	}

	public void setPf_unitname(String pf_unitname){
		this.pf_unitname=pf_unitname;
	}
	public String getPf_unitname(){
		return pf_unitname;
	}

	public void setPf_local_id(String pf_local_id){
		this.pf_local_id=pf_local_id;
	}
	public String getPf_local_id(){
		return pf_local_id;
	}

	public void setContext(String context){
		this.context=context;
	}
	public String getContext(){
		return context;
	}

	public void setOper(String oper){
		this.oper=oper;
	}
	public String getOper(){
		return oper;
	}

}

